KERNELDIR := /home/Linux/kernel/ebf_linux_kernel_6ull_depth1/build_image/build
CURRENT_PATH := $(shell pwd)
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
#导入环境变量
export  ARCH  CROSS_COMPILE
obj-m := newchardev.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH)  clean
	rm -rf newchardevApp

